<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>打印预览</title>
    <style>
        table{ width:100%; margin: 5px auto; border: 1px solid #000;border-collapse: collapse;}
        td{ padding: 3px ;}
        .bgs{font-size: 14px; font-weight: bold;background: #eee;}
    </style>
</head>
<body>


<div id="dv1">
    <table border="1" style="font-size: 14px;text-align: center;">
        <h2  style="text-align: center; margin: 5px 0;">天 晨 门 业 订 货 单</h2>
        <tr>
            <td class="bgs" colspan="2"><b>订单编号</b></td>
            <td>{$re.order_number}</td>
            <td class="bgs">经销商</td>
            <td colspan="2">{$re.company_name}</td>
            <td class="bgs">订货日期</td>
            <td>{$re.order_time|date='Y-m-d',###}</td>
            <td class="bgs" colspan="2">确定时间</td>
            <td>8.2</td>
            <td class="bgs">客户名称</td>
            <td colspan="3">{$re.username}</td>
            <td colspan="2"></td>
        </tr>
        <tr class="bgs">
            <td>序号</td>
            <td>产品名称</td>
            <td colspan="2">门洞尺寸</td>
            <td>数量</td>
            <td width="40">颜色</td>
            <td>门扇规格</td>
            <td colspan="2">立板规格</td>
            <td colspan="2">帽头规格</td>
            <td width="70">线条型号</td>
            <td>套线数量</td>
            <td>折扣</td>
            <td>单价</td>
            <td>总价</td>
            <td>备注</td>
        </tr>
        <volist name="parr" id="vo" key="k">
        <tr>
            <td>{$k}</td>
            <td>{$vo.productname}</td>
            <td colspan="2">{$vo.dooropeningsize}</td>
            <td>{$vo.numbers}</td>
            <td>{$vo.color}</td>
            <td>{$vo.doorleafstandard}</td>
            <td colspan="2">{$vo.verticalplate}</td>
            <td colspan="2">{$vo.cropupstandard}</td>
            <td>{$vo.linetype}</td>
            <td>{$vo.wirenumber}</td>
            <td>{$vo.discount}</td>
            <td>{$vo.price}</td>
            <td>{$vo.totalprice}</td>
            <td>{$vo.remark}</td>
        </tr>
        </volist>
        <tr class="bgs">
            <td colspan="2">工序</td>
            <td colspan="2">工价</td>
            <td>操作工</td>
            <td colspan="4">要求完成时间 -- 实际完成时间</td>
            <td colspan="2">工序</td>
            <td colspan="2">工价</td>
            <td>操作工</td>
            <td colspan="4">要求完成时间 -- 实际完成时间</td>
        </tr>
        <volist name="garr" id="vs" key="k">

            <if condition="$k %2 eq 1">
                <tr>
                    <td colspan="2">{$vs.processname}</td>
                    <td colspan="2">{$vs.labourcost}</td>
                    <td>{$vs.constructionworker}</td>
                    <td colspan="4">{$vs.requiretime} -- {$vs.completetime}</td>
                    <else/>
                    <td colspan="2">{$vs.processname}</td>
                    <td colspan="2">{$vs.labourcost}</td>
                    <td>{$vs.constructionworker}</td>
                    <td colspan="4">{$vs.requiretime} -- {$vs.completetime}</td>
                </tr>
            </if>

        </volist>

        <tr>
            <td class="bgs" colspan="2">总款</td>
            <td colspan="3">{$re.order_price}</td>
            <td class="bgs" colspan="2">定金</td>
            <td colspan="3">{$re.downpayment}</td>
            <td class="bgs" colspan="2">已收货款</td>
            <td colspan="2">{$re.receiveprice}</td>
            <td class="bgs" colspan="2">余款</td>
            <td colspan="2">{$re.sparemoney}</td>
        </tr>

        <tr>

            <td class="bgs" colspan="2">制单人：</td>
            <td colspan="3">{$re.eecupeople}</td>
            <td class="bgs" colspan="2">审单人：</td>
            <td colspan="5">{$re.auditpeople}</td>
            <td class="bgs" colspan="2">财务：</td>
            <td colspan="3">{$re.finance}</td>
        </tr>
        <tr>
            <td class="bgs" colspan="2">备注</td>
            <td colspan="15" align="left">{$re.orderremark}</td>
        </tr>
        <tr>
            <td colspan="9">
                <p style="text-align: left">
                特别提示：<br/>1、请仔细核对，如有错漏之处和改动请及时在回传单中修改。<br/>2、请签名后回传此单并付定金，我公司收到确认单和定金后照此单生产。<br/>3、确认后1小时过后不能更改尺寸或款式72小时后不能更改颜色。<br/>
                </p>
            </td>
            <td colspan="8">
               <p style="text-align: left">银行账户：<br/>
                 {$bankarr.bank1}：{$bankarr.cardnumber1} （户名：{$bankarr.openname1}）<br/>
                 {$bankarr.bank2}：{$bankarr.cardnumber2} （户名：{$bankarr.openname2}）<br/>
                 {$bankarr.bank3}：{$bankarr.cardnumber3} （户名：{$bankarr.openname3}）
                </p>
            </td>

        </tr>

    </table>
</div>

<p><a href="javascript:void(0)" class="button">打印预览</a></p>
<script src="__PUBLIC__/Admin/js/jquery-2.1.1.min.js"></script>
<script>

    $(function(){
        $('.button').click(function(){
            $(this).css('display','none');
            window.print();
        })
    })




    $(function(){
        $('.mark').css('margin-left',$('table').offsetLeft);
    })


</script>

</body>
</html>